
package com.jf.cloud.platform.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jf.cloud.common.serializer.ImgJsonSerializer;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author zz
 * @date 2020/9/2
 */
public class SysUserSimpleVO {

    /**
     * 用户名
     */
    @Schema(description = "用户名" )
    private String userName;

    /**
     * 昵称
     */
    @Schema(description = "昵称" )
    private String nickName;

    /**
     * 头像
     */
    @Schema(description = "头像" )
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String avatar;

    private Integer isAdmin;

    private Long userId;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "SysUserSimpleVO{" +
                "userName='" + userName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", avatar='" + avatar + '\'' +
                ", isAdmin=" + isAdmin +
                ", userId=" + userId +
                '}';
    }
}
